package com.qf.service.impl;

import com.qf.mapper.DtsOrderMapper;
import com.qf.service.DtsOrderService;
import com.qf.vo.DayStatis;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class DtsOrderServiceImpl implements DtsOrderService {
    @Autowired
    private DtsOrderMapper dtsOrderMapper;

    @Override
    public Integer findCount() {
        return dtsOrderMapper.selectCount(null);
    }

    /**
     * 日期和对应的订单总额，订单笔数
     * @param statisDaysRang
     * @return
     */
    @Override
    public List<DayStatis> findOrderDayStatis(int statisDaysRang) {
        return dtsOrderMapper.findOrderDayStatis(statisDaysRang);
    }
}
